package com.hualan.service.impl;

import com.hualan.mapper.CompanyMapper;
import com.hualan.pojo.Company;
import com.hualan.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    private CompanyMapper companyMapper;

    @Override
    public List<Company> findAll() {
        return companyMapper.findAll();
    }

    @Override
    public Company findById(Integer id) {
        return companyMapper.findById(id);
    }

    @Override
    public int save(Company company) {
        return companyMapper.save(company);
    }

    @Override
    public int update(Company company) {
        return companyMapper.update(company);
    }

    


}